﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/User.Master" AutoEventWireup="true" CodeBehind="ReportList.aspx.cs" Inherits="CRMWeb.Pages.Report.ReportList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        var setUserRole = '';
        var preFile = '';
        $(document).ready(function () {
            document.title = "CRM - Report";
            $('#tvReportList').tree({
                data: [{
                    id: 1,
                    text: 'Loan Purpose Analysis',
                }, {
                    id: 2,
                    text: 'Business Client State Analysis'
                },
                {
                    id: 3,
                    text: 'Test2014'
                }
                ],
                onSelect: function (node) {
                    var nodeVal = node.text;
                    if (nodeVal == "Loan Purpose Analysis") {
                        $('#divReportDetail').panel('refresh', '/Pages/Report/ReportDetail.aspx');
                    }
                    if (nodeVal == "Business Client State Analysis") {
                        $('#divReportDetail').panel('refresh', '/Pages/Report/BusinessClientStateReport.aspx');
                    }
                    if (nodeVal == "Test2014") {
                        $('#divReportDetail').panel('refresh', '/Pages/Report/Test2014.aspx');
                    }
                },
                onLoadSuccess: function (node, data) {
                    var node = $('#tvReportList').tree('find', 1);
                    $('#tvReportList').tree('select', node.target);
                }
            });
        });
    </script>

</asp:Content>
<asp:content id="Content2" contentplaceholderid="ContentPlaceHolder1" runat="server">
    <table style="width: 100%;">
        <tr>
            <td style="width: 22%; vertical-align: top;">
                    <ul id="tvReportList"  data-options="animate:true"></ul>
            </td>
            <td style="vertical-align: top; width: 74%;">
                <input id="hdnGroupID" type="hidden" />
                <input id="hdnGroupNameForPriorityQueue" type="hidden" />
                <div id="divReportDetail" class="easyui-panel" style="padding: 10px; width: auto; height: auto;">
                </div>
                <input type="hidden" id="hdnGrpRole" runat="server" />
            </td>
        </tr>
    </table>
    <script type="text/javascript">
        fnLeftNavSelected('A3');
    </script>
</asp:content>

